package com.zhieasy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhieasy.domain.Student;
import com.zhieasy.domain.StudentInfoVo;
import com.zhieasy.domain.StudentVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 风亦未止
 * @date 2021/11/22 18:01
 */
@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    /**
     * 查询所有学生
     * @param student
     * @return
     */
    List<StudentVo> selectAll(Student student);

    /**
     * 获取学生总数
     * @return
     */
    Integer getStudentNum();

    /**
     * 获取提交简历数
     * @return
     */
    Integer getSubmitNum();

    /**
     * 获取单个学生信息
     * @param student
     * @return
     */
    StudentInfoVo getInfo(Student student);
}